package com.qijian.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qijian.common.enums.ApprovalDescriptionEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * 超期数据对象 main_expire_data
 *
 * @author qijian
 * @date 2023-10-18
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_expire_data")
public class ExpireData extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "邮件类型")
    private String emailType;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "源数据id")
    private Long sourceId;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "超期日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "超期日期")
    private Date expireDate;

    @ApiModelProperty(value = "是否有效数据")
    private Boolean isValid;


}
